// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
//
// Copyright (c) KALEIDOS INC

@import "refactor/common-refactor.scss";

.modal-overlay {
  @extend .modal-overlay-base;
}

.modal-container {
  max-width: $s-960;
  max-height: fit-content;
  width: fit-content;
  padding-inline: $s-100;
  padding-block-start: $s-40;
  padding-block-end: $s-72;
  border-radius: $br-8;
  border: $s-2 solid var(--modal-border-color);
  background-color: var(--modal-background-color);
}

.form-wrapper {
  display: grid;
  grid-template-columns: 1fr;
  gap: $s-24;
}

// STEP CONTAINER
.paginator {
  @include smallTitleTipography;
  height: $s-20;
  text-align: right;
  color: var(--modal-text-foreground-color);
}

.action-buttons {
  @extend .modal-action-btns;
}
.next-button {
  @extend .modal-accept-btn;
}

.prev-button {
  @extend .modal-cancel-btn;
}

.radio-btns label,
.select-class span {
  @include bodyMediumTypography;
}

// STEP 1

.header-image {
  height: $s-60;
  width: auto;
  margin-inline-start: auto;
}

.modal-title {
  @include bigTitleTipography;
  color: var(--modal-title-foreground-color);
  min-height: $s-32;
  margin-block: auto;
}

.modal-subtitle {
  @include bodyLargeTypography;
  color: var(--modal-title-foreground-color);
  margin: 0;
  padding: 0;
}

.modal-text {
  @include bodyLargeTypography;
  color: var(--modal-text-foreground-color);
  margin: 0;
}

// STEP-2
.step-1,
.step-2,
.step-3,
.step-5 {
  max-width: $s-540;
  width: $s-540;
}
.step-2 {
  grid-template-rows: $s-20 auto auto $s-32;
}

.modal-question {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: $s-16 $s-32;
  gap: $s-16;
  height: fit-content;
}

.question-centered {
  width: $s-424;
  grid-template-rows: auto $s-32;
  margin: 0 auto;
}

.radio-wrapper {
  display: grid;
  grid-template-columns: 1fr;
  gap: $s-16;
}

// STEP-3
.step-3 {
  grid-template-rows: $s-20 auto auto auto auto $s-32;
}

.image-radio {
  display: grid;
  grid-template-rows: 1fr 1fr;
  grid-template-columns: $s-92 $s-92 $s-92;
  row-gap: $s-16;
  column-gap: $s-24;
  justify-content: center;
}

.input-spacing {
  height: $s-32;
  width: 100%;
  margin-block-end: $s-8;
}

.input-spacing input {
  @include bodyMediumTypography;
}

// STEP-4

.step-4 {
  grid-template-rows: $s-20 auto auto $s-32;
  row-gap: $s-16;
}
